<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags"  prefix="s"%>
<%@  taglib  uri="http://jsptags.com/tags/navigation/pager" prefix="pg" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">

		<title>控制面板默认页面</title>

		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
		<link rel="stylesheet" type="text/css"
			href="./styles/control_panel.css">
	  <script src="./javaScripts/jquery-1.5.1.min.js" type="text/javascript"></script>
	 <STYLE type="text/css">
	  #tb_msg td{
	      border-bottom: 1px solid #F5FAFE;
	      line-height: 28px;
	      padding-top: 1px;
	      padding-bottom: 1px;
	       
	  }
	 
	  .page_{
	   float: left;
	   width: auto!important;
	   width: 40px;
	   min-width: 40px;
	   max-width: 60px;
	   line-height: 28px;
	   padding-top: 1px;
	   padding-bottom: 1px;
	   text-align: center;
	   border: 1px solid #cccccc;
	   margin-right: 6px;
	   margin-top: 10px;
	   color: #2764b7;
	 
	  }
	  #pag_prev, #pag_next{
	  width: 60px;
	  }
	  #page_con a{
	     color: #2764b7;
	     font-size: 14px;
	     text-decoration: none;
	    
	  }
	   .page_after{
	    background-color: #2764b7;
	    color: white;
	     float: left;
	   width: auto!important;
	   width: 40px;
	   min-width: 40px;
	   max-width: 60px;
	   line-height: 28px;
	   padding-top: 1px;
	   padding-bottom: 1px;
	   text-align: center;
	   border: 1px solid #cccccc;
	   margin-right: 6px;
	   margin-top: 10px;
	   color: #2764b7;
	   } 
	  #tb_msg_ .tr_after{
	      background-color: #e7f4fd;
	  }
	  #tb_msg_ td{
	    border-top: 1px solid #cfd8e1;
	    padding-top: 1px;
	    padding-bottom: 1px;
	    line-height: 28px;
	    font-size: 14px;
	  }
	  #tb_msg_{
	   background-color: #f5fafe;
	  }
	 </STYLE>
	 <script type="text/javascript">
	    var cacheStyle;
	    $(document).ready(function(){
	       
	      $('#page_con a').each(function(){
	           $(this).mousemove( function(){
	         $(this).css({cursor:" pointer"});
	      });
	       $(this).bind('click',function(){
	                cacheStyle=$(this).find(".page_").removeClass().addClass("page_after");
	                 
	              
	       });
	    });
	      
	    $('#tb_msg_ tr').each(function(){
	            $(this).mousemove(function(){
	              $(this).css({cursor:" pointer"}).removeClass().addClass("tr_after");
	              
	            });
	            $(this).mouseout(function(){
	              $(this).removeClass();
	            });
	            
	    });
	    });
	    function viewPost(id){
	      top.location.href="<%=basePath%>"+"post/post_queryPostById?id="+id;
	    }
	 </script>
	</head>

	<body
		style="margin-top: 0px; margin-left: auto; margin-right: 0; text-align: center; padding: 0px; text-align: right">
	          
		<pg:pager url="bbs/post/reply_queryReplyByAuthor"  maxIndexPages="10"  maxPageItems="2"  scope="request" export="currentPageNumber=pageNumber">
		<div style="border: 1px solid #cccccc; height:auto!important;  height:100px;min-height:100px; ">
			<div class="control_con_right_0021">
				<table width="100%" cellpadding="0" cellspacing="0" border="0">
					<tr>
						<td align="left" class="tb_left" valign="middle" colspan="3" style="padding-left: 10px;"> 
							 我的回复 
						</td>

					</tr>

				</table>
			</div>
              <div class="control_con_right_0022" >
				<div class="control_con_right_00221">
					<table border="0" cellpadding="0" cellspacing="0" width="100%"
						align="center" style="color: #1E5B77;" class="tb_msg">
						<tr>
							<td width="20%" align="center">
								所在主题
							</td>
							<td width="20%" align="center">
								板块
							</td>
							<td width="20%" align="center">
							 内容
							</td>
							<td width="20%" align="center">
								最后发表
							</td>
							<td width="20%" align="center">
							 状态
							</td>
						</tr>
					</table>
				</div>
				<s:if test="#session.replyListByUser!=null">
					<div>
						
						  <table border="0" cellpadding="0" cellspacing="0" width="100%"
						align="center" id="tb_msg_">
						<s:iterator value="#session.replyListByUser" var="replyList">
						<pg:item>
						<tr onclick="javaScript:viewPost(<s:property value="#replyList.postId"/>)">
							<td width="20%" align="center">
							  <s:property value="#replyList.title"/>
							</td>
							<td width="20%" align="center">
								 <s:property value="#replyList.moduleName"/>
							</td>
							<td width="20%" align="center">
								   ${requestScope.replyList.content }
							</td>
							<td width="20%" align="center">
								<s:property value="#replyList.replyTime"/>
							</td>
							<td width="20%" align="center">&nbsp;
							 <s:property value="#replyList.statue"/>
							</td>
						</tr>
						</pg:item>
						</s:iterator> 
					       
					</table>
					    
						
					</div>
				</s:if>
				<s:else>
					<div
						style="text-align: left; padding-left: 20px; padding-top: 4px;">
						 本版块或指定的范围内尚无主题。
					</div>
				</s:else>
			</div>
          </div>
           <!-- 分页控件 -->
           <div style="text-align: right;" id="page_con">
              			 
					    	<pg:prev>
							<a href="${pageUrl}&replyAuthorId=${requestScope.replyAuthorId}" ><div  class="page_" id="pag_prev" >Prev</div></a> 
						  </pg:prev>
						 <pg:pages>
							 
								<s:if test="#request.currentPageNumber == #request.pageNumber}">
									<font color="red">${pageNumber}</font>
								</s:if>
								<s:else>
									<a href="${pageUrl}&replyAuthorId=${requestScope.replyAuthorId}"><div  class="page_">${pageNumber}</div></a>
								</s:else>
							 
						</pg:pages>
						<pg:next>
							<a href="${pageUrl}&replyAuthorId=${requestScope.replyAuthorId} "><div  class="page_" id="pag_next">Next</div></a>
						</pg:next>
 
           </div>
		 
		 
		 </pg:pager>
		 
	</body>
</html>

